package com.cisc.business.order.dto;

import java.math.BigDecimal;

/**
 * @description: XXX
 * @author: daizh
 * @time: 2021/6/20 14:35
 */
public class OrderInfo {
    private Integer id;
    private Integer userId;
    private Integer productId;
    private BigDecimal price;
    private Integer num;
    private BigDecimal total;

    public OrderInfo() {
    }

    public OrderInfo(Integer id, Integer userId, Integer productId, BigDecimal price, Integer num, BigDecimal total) {
        this.id = id;
        this.userId = userId;
        this.productId = productId;
        this.price = price;
        this.num = num;
        this.total = total;
    }

    public Integer getId() {
        return id;
    }

    public void setId(Integer id) {
        this.id = id;
    }

    public Integer getUserId() {
        return userId;
    }

    public void setUserId(Integer userId) {
        this.userId = userId;
    }

    public Integer getProductId() {
        return productId;
    }

    public void setProductId(Integer productId) {
        this.productId = productId;
    }

    public BigDecimal getPrice() {
        return price;
    }

    public void setPrice(BigDecimal price) {
        this.price = price;
    }

    public Integer getNum() {
        return num;
    }

    public void setNum(Integer num) {
        this.num = num;
    }

    public BigDecimal getTotal() {
        return total;
    }

    public void setTotal(BigDecimal total) {
        this.total = total;
    }

    @Override
    public String toString() {
        return "OrderInfo{" +
                "id=" + id +
                ", userId=" + userId +
                ", productId=" + productId +
                ", price=" + price +
                ", num=" + num +
                ", total=" + total +
                '}';
    }
}
